package com.ruoyi.system.enums;

public enum RegisterEnum {
    FIREWALL("firewall"),SECRET("secretMac"),

    BALANCE("f5");

    private String typeName;

    RegisterEnum(String typeName) {
        this.typeName = typeName;
    }

    /**
     * 根据类型的名称,返回类型的枚举实例。*
     *
     * @param typeName
     */

    public static RegisterEnum fromTypeName(String typeName) {
        for (RegisterEnum type : RegisterEnum.values()) {
            if (type.getTypeName().equals(typeName)) {
                return type;
            }
        }
        return null;
    }

    public String getTypeName() {
        return this.typeName;
    }
}
